$(document).ready(function() {
    $("#btnRequest").bind("click", function(e) {
    	$.ajax({
            type: "POST",
            url: APPLICATION_CONTEXT+"/rpc.json",
            dataType: "text",
            data:{
    			"invoke":"dwrFacade.exceptionUser"
            },
            beforeSend:function(xhr) {
            },
            success:function(data, textStatus,xhr) {
            	if(data == "{}") {
            		alert('데이터가 존재 하지 않습니다.');
            		return;
            	}
            	alert(data);
            },
            error:function(xhr, textStatus, errorThrown) {
            	//invalid binding
            	if(xhr.status == 400) {
            		alert(xhr.responseText);
            	}else{
            		alert(xhr.responseText);
            	}
            },
            complete:function(xhr, textStatus) {
            },
            timeout:1000
        });//ajax of end
    });
});





